
import {staticPaperEnumList,staticQuestionTypeEnum } from './api'

var questionsTypes = staticQuestionTypeEnum({}).then(res => res);

export function showQuestionTypText(typeValue) {
    
   return  questionsTypes.find(item => item.Value == typeValue);
}

export function showPaperText(typeValue) {
   

   staticPaperEnumList({}).then(paperlist => {
         var array = paperlist.find((item) => item.Value == typeValue);
        
      return array.Name;

   })



   return "";
}